﻿@@using QD.Web.Management.Controllers
@@model Query<QD.Web.Management.Models.@(Model.ControllerName).@(Model.DomainModelName), QD.Web.Management.Models.@(Model.ControllerName).@(Model.ParamName)>
<div style="overflow-x:auto;white-space: nowrap;">
    <table id="tbl-project" class="table loading table-bordered margin-top-10 margin-bottom-5 table-hover table-striped">
        <thead>
            <tr>
                <th>序号</th>
				@foreach(var col in Model.Columns){
				<th>@(string.IsNullOrEmpty(col.desc)?col.name:col.desc)</th>
				}
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @@{var index = 1;}
            @@foreach (var item in Model.ItemList)
            {
                <tr>
                    <td>@@(index++)</td>
                    @foreach(var col in Model.Columns){
					<th>@col.name</th>
					}
                </tr>
            }
			<td><a class="btn btn-primary btn-sm"><i class="fa fa-edit"></i> 编辑</a></td>
        </tbody>
    </table>
</div>
@@Html.GridPager(Model)